package com.uxwine.skin;

import android.content.Context;
import android.graphics.Typeface;

public class Skin
{
	static Typeface mTypeface;
	
	public static int getDrawable(Context ctx, String name)
	{
		final SkinManager sm = SkinManager.getInstance(ctx);
		return sm.getDrawable(name);
	}
	
	public static int getColor(Context ctx, String name)
	{
		final SkinManager sm = SkinManager.getInstance(ctx);
		return sm.getColor(name);
	}
	
	public static Typeface getTypeface(Context ctx)
	{
		if(null == mTypeface)
		{
			final Context app = ctx.getApplicationContext();
			mTypeface = Typeface.createFromAsset(app.getAssets(), "fonts/orbitron-light.ttf");
		}
		return mTypeface;
	}
}
